import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/chat/stream"
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('@/views/Home/index.vue'),
    },{
      path: '/chat/stream',
      name: 'stream',
      component: () => import('@/views/Home/indexSSE.vue'),
    },{
      path: '/my',
      name: 'my',
      component: () => import('@/views/My/index.vue'),
    },{
      path: "/history",
      component: ()=>import("@/views/History/index.vue")
    },{
      path: "/demo",
      component: ()=>import("@/views/demo/index.vue")
    }
  ],
})

export default router
